package com.cbw.blog.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.ToString;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author baomidou
 * @since 2022-09-05
 */
@TableName("t_statistic")
@ToString
@Data
public class Statistic implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 关联的文章id
     */
    private Integer articleId;

    /**
     * 文章点击总量
     */
    private Integer hits;

    /**
     * 文章评论总量
     */
    private Integer commentsNum;

   @TableField(exist = false)
    private Integer hitsAll;


    @TableField(exist = false)
    private Integer commentsNumAll;


}
